<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">充值</h1><br>
    <h1 class="m-n font-thin h4">账户:{{accountUserObj.username}}&nbsp;&nbsp;&nbsp; 当前余额:¥{{accountUserObj.money}}元</h1>
</div>
<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<div class="wrapper-md" ng-controller="fundCtrl">
    <tabset class="tab-container" ng-init="steps={percent:20, step1:true, step2:false, step3:false}">
        <tab heading="第一步" active="steps.step1" select="steps.percent=10">
            <h4>充值进度</h4>
            <progressbar value="steps.percent" class="progress-xs" type="success"></progressbar>
            <form name="step1" class="form-validation">

                <p>充值金额:</p>
                <input type="text" name="money" class="form-control" ng-model="recharge.money" ng-pattern="/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/" placeholder="金额(00.00)元*" required ng-change="step1.money.$valid ? (steps.percent=30) : (steps.percent=20)">
                <p class="m-t">备注</p>
                <input type="text" name="submitRemark" placeholder="备注*" class="form-control" ng-model="recharge.submitRemark" required ng-change="step1.submitRemark.$valid ? (steps.percent=50) : (steps.percent=30)">
                <div class="m-t m-b">
                    <button type="submit" ng-disabled="step1.$invalid" class="btn btn-default btn-rounded" ng-click="steps.step2=true">下一步</button>
                </div>
            </form>
        </tab>
        <tab heading="第二步" disabled="step1.$invalid" active="steps.step2" select="steps.percent=80">
            <form name="step2" class="form-validation">
                <p class="m-b">输入交易密码</p>
                <progressbar value="steps.percent" class="progress-xs" type="success"></progressbar>
                <p>交易密码:</p>
                <input type="password" name="paypwd" class="form-control" ng-model="recharge.paypwd" required ng-change="step2.paypwd.$valid ? (steps.percent=90) : (steps.percent=80)">
                <div class="m-t m-b">
                    <button type="button" class="btn btn-default btn-rounded" ng-click="steps.step1=true">上一步</button>
                    <button type="submit" ng-disabled="step2.$invalid" class="btn btn-info btn-rounded" ng-click="steps.step3=true;rechargeFun()">确认支付</button>
                </div>
            </form>
        </tab>
    </tabset>
</div>